package xiaolong.lian.service;

import xiaolong.lian.entity.Page;
import xiaolong.lian.exception.CustomException;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface PageService {
    List<Page> getPageList(String docId, String tel) throws CustomException;

    Page createPage(String docId, int num, String tel) throws CustomException;

    void deletePage(String id, String tel) throws CustomException;

    void updatePageData(String id, String data, String tel) throws CustomException, IOException;

    String getPageData(String id, String tel) throws CustomException, IOException;

    void checkDocPermission(String tel, String docId) throws CustomException;
}
